package com.ruoyi.applet.product.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 产品规格对象 product_specifications
 * @author ruoyi
 * @date 2024-11-20
 */
public class ProductSpecifications extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /** 产品规格id */
    private Long id;
    
    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;
    
    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specificationsName;
    
    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;
    
    /** 单位 */
    @Excel(name = "单位")
    private String unit;
    
    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;
    
    /** 状态 */
    @Excel(name = "状态")
    private Integer status;
    
    /** 是否默认 */
    @Excel(name = "是否默认")
    private Integer defaultFlag;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getProductId() {
        return productId;
    }
    
    public void setProductId(Long productId) {
        this.productId = productId;
    }
    
    public String getSpecificationsName() {
        return specificationsName;
    }
    
    public void setSpecificationsName(String specificationsName) {
        this.specificationsName = specificationsName;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    public String getUnit() {
        return unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }
    
    public Integer getStock() {
        return stock;
    }
    
    public void setStock(Integer stock) {
        this.stock = stock;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public Integer getDefaultFlag() {
        return defaultFlag;
    }
    
    public void setDefaultFlag(Integer defaultFlag) {
        this.defaultFlag = defaultFlag;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productId", getProductId())
                .append("specificationsName", getSpecificationsName())
                .append("price", getPrice())
                .append("unit", getUnit())
                .append("stock", getStock())
                .append("status", getStatus())
                .append("defaultFlag", getDefaultFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
